import React from "react"

class HelloClassComponent extends React.Component {
  // 事件对象 e
  clickHandle = (e) => {
    // 取消默认事件
    e.preventDefault()
    console.log('This is click handle', e)
  }
  render () {
    return <a href="https://baizhi958216.github.io" onClick={this.clickHandle}>Hello Class Component</a>
  }
}

function App () {
  return (
    <div>
      <HelloClassComponent></HelloClassComponent>
    </div>
  )
}

export default App
